home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / libs / x / xview / xview3.004 / xview3 / usr / X11R6 / lib / X11 / config / XView.obj < prev    next >
Encoding:
Text File  |  1996-05-30  |  3.3 KB  |  147 lines

  1. /**/###########################################################################
  2. /**/# @(#)XView.obj    1.6 28 Jun 1993 SMI
  3. /**/# XView.obj for XView release 3.0.  Common commands for all library objects.
  4.  
  5. /*
  6.  *    If the library.tmpl file has already been included, then add its
  7.  *    definitions below so they are not excluded from the rules.  The
  8.  *    library.tmpl file is work around for a small bug in the Library.tmpl 
  9.  *    file.
  10.  *    
  11.  */
  12. #if LibraryTmpl
  13.             STD_DEFINES = StandardDefines LibXViewDefines LibraryDefines 
  14. #else
  15.             STD_DEFINES = StandardDefines LibXViewDefines 
  16. #endif
  17. HEADERS= ${HDRSPUBLIC} ${HDRSPRIVATE}
  18. INCLUDES= -I$(BUILDINCDIR)$(INCDIR) 
  19. OBJS = $(TEXT_OBJS) $(DATA_OBJS) $(SPECIAL_OBJS)
  20. #if !NotLibXView
  21. ALLFILES = $(SRCS) $(HEADERS)
  22. #endif
  23.  
  24. #if SharedLibXView 
  25. # if DebugLibXView
  26. SubdirSharedAndDebuggedLibraryObjectRule()
  27. #  if SubdirHasSpecialObjs
  28. SubdirSpecialSharedAndDebuggedObjectRule($(SPECIAL_OBJS),/**/,/**/)
  29. #  endif
  30. # else
  31. SubdirSharedLibraryObjectRule()
  32. #  if SubdirHasSpecialObjs
  33. SubdirSpecialSharedObjectRule($(SPECIAL_OBJS),/**/,/**/)
  34. #  endif
  35. # endif
  36. #else
  37. # if DebugLibXView && ProfileLibXView
  38. DebuggedAndProfiledLibraryObjectRule()
  39. # else
  40. #  if DebugLibXView
  41. DebuggedLibraryObjectRule()
  42. #  else
  43. #   if ProfileLibXView
  44. ProfiledLibraryObjectRule()
  45. #   else
  46. NormalLibraryObjectRule()
  47. #   endif
  48. #  endif
  49. # endif
  50. #endif
  51.  
  52. /*
  53.  * Need to include a special rule for data modules with globally initialized
  54.  * data.
  55.  */
  56. #if SharedLibXView
  57.  
  58. #ifdef __linux
  59. SubdirNormalSharedLibraryTarget(${LIBTARGET},${SOREV},$(OBJS),$(SHARED_DIR),shared)
  60.  
  61. #else /* __linux */
  62.  
  63. #if SubdirHasTextObjs
  64. SubdirNormalSharedLibraryTarget(${LIBTARGET},${SOREV},$(TEXT_OBJS) $(SPECIAL_OBJS),$(SHARED_DIR),shared)
  65. #endif
  66.  
  67. # if SubdirHasDataObjs
  68. #  if DebugLibXView
  69. SubdirSpecialSharedAndDebuggedObjectRule($(DATA_OBJS),/**/,/**/)
  70. #  else
  71. SubdirSpecialSharedObjectRule($(DATA_OBJS),/**/,/**/)
  72. #  endif
  73. SubdirNormalSharedLibraryDataTarget(${LIBTARGET},${SOREV},$(DATA_OBJS),$(UNSHARED_DIR),.)
  74. # endif
  75.  
  76. #endif /* __linux */
  77.  
  78.  
  79. # if DebugLibXView
  80. SubdirDebuggedLibTarget(${LIBTARGET},$(OBJS))
  81. # endif
  82.  
  83. #else
  84.  
  85. # if DebugLibXView
  86. SubdirDebuggedLibTarget(${LIBTARGET},$(OBJS))
  87. # endif
  88. # if ProfileLibXView
  89. SubdirProfiledLibTarget(${LIBTARGET},$(OBJS))
  90. # endif
  91.  
  92. #endif
  93.  
  94. SubdirNormalLibTarget(${LIBTARGET},$(OBJS))
  95. SubdirLintLibraryTarget(${LIBTARGET},$(LINTDIR),$(SRCS))
  96.  
  97. DependTarget()
  98. NormalLintTarget($(SRCS))
  99.  
  100. #if SubdirHasPublicHeaders
  101. # if NotLibXView
  102. BuildIncludes($(HDRSPUBLIC),$(PUB_INCDIR),/**/)
  103.  
  104. install::
  105.     $(MKDIRHIER) $(PUB_HEADER_DEST)
  106.  
  107. InstallMultiple($(HDRSPUBLIC),$(PUB_HEADER_DEST))
  108. # else
  109. BuildIncludes($(HDRSPUBLIC),$(XVPUB_INCDIR),/**/)
  110.  
  111. install::
  112.     $(MKDIRHIER) $(XVPUB_HEADER_DEST)
  113.  
  114. InstallMultiple($(HDRSPUBLIC),$(XVPUB_HEADER_DEST))
  115. # endif
  116. #endif
  117.  
  118. #if SubdirHasPrivateHeaders
  119. # if NotLibXView
  120. BuildIncludes($(HDRSPRIVATE),$(PRI_INCDIR),/**/)
  121. # else
  122. BuildIncludes($(HDRSPRIVATE),$(XVPRI_INCDIR),/**/)
  123. # endif
  124. # if InstallPrivateHeaders
  125. #  if NotLibXView
  126. install::
  127.     $(MKDIRHIER) $(PRI_HEADER_DEST)
  128.  
  129. InstallMultiple($(HDRSPRIVATE),$(PRI_HEADER_DEST))
  130. #  else
  131. install::
  132.     $(MKDIRHIER) $(XVPRI_HEADER_DEST)
  133.  
  134. InstallMultiple($(HDRSPRIVATE),$(XVPRI_HEADER_DEST))
  135. #  endif
  136. # endif
  137. #endif
  138.  
  139. #ifndef IncludePopulateSCCS
  140. #define IncludePopulateSCCS YES
  141. PopulateSCCSTree(h,$(ALLFILES))
  142. #endif
  143.  
  144. includes::
  145.  
  146. install::
  147.